﻿@using TomNet.IMSC.Model.DbModels.LowPriceHouse;

@{
    Layout = null;
    //var depart = ViewData["select_depart"] as SelectList;
    //var position = ViewData["select_position"] as SelectList;
    //var roles = ViewData["select_role"] as SelectList;
    var entity = ViewData["entity"] as LowPriceHouseRunnings;
}

<!DOCTYPE html>
<html>
<head>
    <meta name="viewport" content="width=device-width" />
    <link href="~/Content/Css/bootstrap.min.css?v=3.3.6" rel="stylesheet">
    <link href="~/Content/Css/font-awesome.css?v=4.4.0" rel="stylesheet">
    <link href="~/Content/Css/plugins/bootstrap-table/bootstrap-table.min.css" rel="stylesheet">
    <link href="~/Content/Css/animate.css" rel="stylesheet">
    <link href="~/Content/Css/style.css?v=4.1.0" rel="stylesheet">
    <link href="~/Content/common.css" rel="stylesheet">
    <title>edit</title>
    <style>

    </style>
</head>
<body>
    <div class="wrapper wrapper-content animated fadeInRight">
        @*<form class="form-horizontal m-t" id="mainForm">*@
        <input type="hidden" id="Id" name="Id" value="@entity.Id" />

        <div class="row">
            <div class="col-sm-12">
                <div class="form-group">
                    <label class="col-xs-4 control-label">报备审核：</label>
                    <div class="col-xs-8">
                        @if (entity.State == 2 || entity.State > 3)
                        {
                            <label class="control-label">@ViewData["FilingAuditingStaff"]</label>
                            <label class="control-label">@entity.FilingAuditingTime.ToString("yyyy-MM-dd HH:mm:ss")</label>
                        }
                        else
                        {
                            <label class="control-label">无</label>
                            <label class="control-label"></label>
                        }
                    </div>
                </div>
            </div>
        </div>
        <div class="row">
            <div class="col-sm-12">
                <div class="form-group">
                    <label class="col-xs-4 control-label">带看操作：</label>
                    <div class="col-xs-8">
                        @if (entity.State >= 4)
                        {
                            <label class="control-label">@ViewData["BandSawStaff"]</label>
                            <label class="control-label">@entity.BandSawTime</label>
                        }
                        else
                        {
                            <label class="control-label">无</label>
                            <label class="control-label"></label>
                        }
                    </div>
                </div>
            </div>
        </div>
        <div class="row">
            <div class="col-sm-12">
                <div class="form-group">
                    <label class="col-xs-4 control-label">认购操作：</label>
                    <div class="col-xs-8">
                        @if (entity.State >= 5)
                        {
                            <label class="control-label">@ViewData["SubscribeStaff"]</label>
                            <label class="control-label">@entity.SubscribeTime.ToString("yyyy-MM-dd HH:mm:ss")</label>
                        }
                        else
                        {
                            <label class="control-label">无</label>
                            <label class="control-label"></label>
                        }
                    </div>
                </div>
            </div>
        </div>
        <div class="row">
            <div class="col-sm-12">
                <div class="form-group">
                    <label class="col-xs-4 control-label">首付操作：</label>
                    <div class="col-xs-8">
                        @if (entity.State >= 6)
                        {
                            <label class="control-label">@ViewData["DownPaymentStaff"]</label>
                            <label class="control-label">@entity.DownPaymentTime.ToString("yyyy-MM-dd HH:mm:ss")</label>
                        }
                        else
                        {
                            <label class="control-label">无</label>
                            <label class="control-label"></label>
                        }
                    </div>
                </div>
            </div>
        </div>
        <div class="row">
            <div class="col-sm-12">
                <div class="form-group">
                    <label class="col-xs-4 control-label">备案操作：</label>
                    <div class="col-xs-8">
                        @if (entity.State >= 7)
                        {
                            <label class="control-label">@ViewData["PutOnRecordStaff"]</label>
                            <label class="control-label">@entity.PutOnRecordTime.ToString("yyyy-MM-dd HH:mm:ss")</label>
                        }
                        else
                        {
                            <label class="control-label">无</label>
                            <label class="control-label"></label>
                        }
                    </div>
                </div>
            </div>
        </div>
        <div class="row">
            <div class="col-sm-12">
                <div class="form-group">
                    <label class="col-xs-4 control-label">完成操作：</label>
                    <div class="col-xs-8">
                        @if (entity.State >= 8)
                        {
                            <label class="control-label">@ViewData["CompleteStaff"]</label>
                            <label class="control-label">@entity.CompleteTime.ToString("yyyy-MM-dd HH:mm:ss")</label>
                        }
                        else
                        {
                            <label class="control-label">无</label>
                            <label class="control-label"></label>
                        }
                    </div>
                </div>
            </div>
        </div>
        <div class="row">
            <div class="col-sm-12">
                <div class="form-group">
                    <label class="col-xs-4 control-label">退房申请操作：</label>
                    <div class="col-xs-8">
                        @if (entity.ReturnState >= 2)
                        {
                            <label class="control-label">@ViewData["ReturnHouseStaff"]</label>
                            <label class="control-label">@entity.ReturnHouseTime.ToString("yyyy-MM-dd HH:mm:ss")</label>
                        }
                        else
                        {
                            <label class="control-label">无</label>
                            <label class="control-label"></label>
                        }
                    </div>
                </div>
            </div>
        </div>
        <div class="row">
            <div class="col-sm-12">
                <div class="form-group">
                    <label class="col-xs-4 control-label">退房审核操作：</label>
                    <div class="col-xs-8">
                        @if (entity.ReturnState == 3)
                        {
                            <label class="control-label">@ViewData["ReturnHouseAuditingStaff"]</label>
                            <label class="control-label">@entity.ReturnHouseAuditingTime.ToString("yyyy-MM-dd HH:mm:ss")</label>
                        }
                        else
                        {
                            <label class="control-label">无</label>
                            <label class="control-label"></label>
                        }
                    </div>
                </div>
            </div>
        </div>






        <div class="row">
            <div class="col-sm-6">

            </div>
            <div class="col-sm-6">
                <div class="pull-right">
                    <button id="closeBtn" class="btn btn-primary pull-center" type="button">
                        <i class="fa fa-check"></i>&nbsp;确&nbsp;定
                    </button>
                </div>
            </div>
        </div>


        @*</form>*@

    </div>
    <!-- 全局js -->
    <script type="text/javascript" src="~/Scripts/jquery.min.js?v=2.1.4"></script>
    <script type="text/javascript" src="~/Scripts/bootstrap.min.js?v=3.3.6"></script>

    <!-- jQuery Validation plugin javascript-->
    <script type="text/javascript" src="~/Scripts/plugins/validate/jquery.validate.min.js"></script>
    <script type="text/javascript" src="~/Scripts/plugins/validate/messages_zh.min.js"></script>
    <script type="text/javascript" src="~/Scripts/Extensions/ExtValidator.js"></script>

    <!-- layer javascript -->
    <script type="text/javascript" src="~/Scripts/plugins/layer/layer.min.js"></script>
    <script>


        //$(function () {
            // validate signup form on keyup and submit
            //var icon = "<i class='fa fa-times-circle'></i> ";
            //var validator = $("#mainForm").validate({
            //    rules: {
                    //IntermediaryName: {
                    //    required: true
                    //},
                    //CityName: {
                    //    required: true
                    //},
                    //Name: {
                    //    required: true
                    //},
                    //Phone: {
                    //    required: true,
                    //    Phone: true
                    //},
                    //TotalPrice: {
                    //    digits: true
                    //},
                    //Area: {
                    //    digits: true
                    //}
                //},
                //messages: {
                    //IntermediaryName: {
                    //    required: icon + "请选择中介"
                    //},
                    //CityName: {
                    //    required: icon + "请选择城市"
                    //},
                    //Name: {
                    //    required: icon + "请输入经纪人姓名"
                    //},
                    //Phone: {
                    //    required: icon + "请输入经纪人电话",
                    //    Phone: icon + '请输入正确的电话号'
                    //},
                    //TotalPrice: {
                    //    digits: icon + "全款必须是数字"
                    //},
                    //Area: {
                    //    digits: icon + "面积必须是数字"
                    //}
        //        },
        //        submitHandler: function (form) {
        //            //alert(JSON.stringify($('#mainForm').serialize()));
        //            //return;
        //            //进行ajax传值
        //            $.ajax({
        //                url: "/Runnings/Runnings/AddressEditAsync",
        //                type: "post",
        //                dataType: "json",
        //                data: $('#mainForm').serialize(),
        //                success: function (data) {
        //                    //Info,Success,Warning,Error
        //                    var type = data.type;
        //                    if (type == 1) {
        //                        layer.msg(data.content, { icon: 6, time: 2000 },
        //                            function () {
        //                                var index = parent.layer.getFrameIndex(window.name);
        //                                parent.layer.close(index);
        //                            });

        //                    } else {
        //                        layer.msg(data.content, { icon: 5, time: 2000 });
        //                    }
        //                }
        //            });
        //        }
        //    });
        //});

        //关闭窗口
        $('#closeBtn').click(function () {
            var index = parent.layer.getFrameIndex(window.name);
            parent.layer.close(index);
        });


    </script>
</body>
</html>
